using System;
using Core.Base;
using Core.Contracts.Enums;
using Core.Contracts.Interfaces;
using Core.Extensions;
using Core.Features;
using Core.Resources;

namespace Core.Items.Robots
{
    
    public sealed class Argano: RobotBase
    {
        /// <summary>
        /// Create a new instance of the <see cref="T:Core.Items.Robots.Argano"/> class.
        /// </summary>
        public Argano()
            : base(
            "Argano",
            Traduction.desc_argano,
            FactionsEnum.Industrial,
            RobotTechnologyLevel.Mk1,
            RobotSizesEnum.Light,
            new ISlot[]
                {
                    new Slot(0,SlotGroupsEnum.Chassis,SlotTypesEnum.Industrial, SizesEnum.Small),
                    new Slot(1,SlotGroupsEnum.Chassis,SlotTypesEnum.Industrial, SizesEnum.Small),
                    new Slot(2,SlotGroupsEnum.Chassis,SlotTypesEnum.Turret|SlotTypesEnum.Missile|SlotTypesEnum.Misc|SlotTypesEnum.Industrial, SizesEnum.Small|SizesEnum.Medium),
                    new Slot(SlotGroupsEnum.Head, SlotTypesEnum.Modules),
                    new Slot(SlotGroupsEnum.Head, SlotTypesEnum.Modules),
                    new Slot(SlotGroupsEnum.Legs, SlotTypesEnum.Modules),
                    new Slot(SlotGroupsEnum.Legs, SlotTypesEnum.Modules)
                },
            new IFeature<object>[]
                {
                    new AccumulatorCapacity<double>(300),
                    new AccumulatorRechargeTime<double>(120),
                    new CpuPerformance<double>(155),
                    new ReactorPerformance<double>(170),
                    new ArmorAmount<double>(700),
                    new ChemicalResistance<double>(30),
                    new KineticResistance<double>(45),
                    new SeismicResistance<double>(45),
                    new ThermalResistance<double>(45),
                    new SurfaceHitSize<double>(4),
                    new InterferenceEmission<double>(3),
                    new InterferenceMinimum<double>(45),
                    new InterferencePeak<double>(155),
                    new InterferenceRadius<double>(100),
                    new LockingRange<double>(200),
                    new LockingTime<double>(12.50),
                    new MaximumTargets<double>(2),
                    new MissileGuidanceFailure<double>(0.1),
                    new SensorStrength<double>(100),
                    new SignalDetection<double>(80),
                    new SignalMasking<double>(80),
                    new ReloadingTime<double>(10),
                    new CargoCapacity<double>(7.5),
                    new RobotMass<double>(6680),
                    new SlopeCapacity<double>(56),
                    new TopSpeed<double>(52.20),
                    new Volume<double>(16),
                    new DemobilizerResistance<double>(0),
                    new CriticalHitChance<double>(0)
                },
            new IBonusModifier[]
                {
                    new BonusModifier<BasicRobotics>(FeatureTypesEnum.Module, FeaturesEnum.MinerCycleTime, 0.05){  Unit = UnitsEnum.Percentage, DisplayName = "Miner module cycle time"}, 
                    new BonusModifier<BasicRobotics>(FeatureTypesEnum.Module, FeaturesEnum.MinedAmount, 0.05){ Unit = UnitsEnum.Percentage, DisplayName = "Mined amount increase"}, 
                    new BonusModifier<BasicRobotics>(FeatureTypesEnum.Module, FeaturesEnum.GeoscannerAccuracy, 0.05){ Unit = UnitsEnum.Percentage, DisplayName = "Geoscanner accuracy"}, 
                },
            new ICondition<IExtension>[]
                {
                    new ExtensionCondition<IndustrialRobotControl>(1), 
                    new ExtensionCondition<BasicRobotics>(1)
                })
        {
        }
    }
}